﻿<%@ Page Title="" Language="C#" MasterPageFile="~/settings/SettingsMaster.master" AutoEventWireup="true" Inherits="Settings.Admin.InternalSettings" Codebehind="InternalSettings.aspx.cs" %>
<%@ Register src="../Controls/EntityEdit.ascx" tagname="EntityEdit" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<h2 class="pagetitle">Application Internal settings</h2>
<asp:DataGrid ID="grdSetting" runat="server" AutoGenerateColumns="false"  onitemcommand="grdSetting_ItemCommand" >
    <Columns>
        <asp:BoundColumn DataField="Id" readonly="true" Visible="false"/>
        <asp:BoundColumn DataField="SettingType" HeaderText="Type" />
        <asp:BoundColumn DataField="Code" HeaderText="Code" />
        <asp:BoundColumn DataField="SettingValue" HeaderText="Value" />
        <asp:TemplateColumn ItemStyle-HorizontalAlign="Right">
            <ItemTemplate>
                <asp:Button ID="Button2" CommandName="Edit" Text="Edit" ButtonType="PushButton" CssClass="greenbutton"  runat="server"/>    
                <asp:Button ID="Button3" CommandName="Delete" Text="Delete" ButtonType="PushButton" CssClass="redbutton"  runat="server"/>    
            </ItemTemplate>
        </asp:TemplateColumn>
    </Columns>
</asp:DataGrid>

<asp:Literal ID="litReport" runat="server" />

<uc1:EntityEdit ID="editSetting" runat="server" Caption="Setting" OnUpdate="editSetting_Update"   />



</asp:Content>

